<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*,org.json.*"
 contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%!
//jsonp处理
private String jsonp(String callbakstr,String jsonstr) throws Exception{
    return (((callbakstr==null)||(callbakstr.trim()==""))?jsonstr:callbakstr+"("+jsonstr+")");
}
%>
<%
       JSONArray lst = new JSONArray();
       JSONObject jsout = new JSONObject();
	   JSONObject jso = new JSONObject();
	   jso.put("title", "我是标题");
	   jso.put("sub1", "我是日期");
	   jso.put("sub2", "我是附标");
       for (int i=0;i<6;i++){
    	   lst.put(jso);
       }
       jsout.put("list", lst);
       //out.print(jsout.toString());
       String recalll = aa.req.getParameter("callback");
       String outstr = jsonp(recalll,jsout.toString());
       System.out.println(outstr);
       out.print(outstr);
%>
